#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

#include <stdio.h>

int main()
{
	/*int a = 0;
	int b = 0;
	int c = 0;

	int arr[10] = { 0 };

	arr[2] = 4;*/
	//arr = 12;

	/*int a = 2;

	switch (1+1)
	{
		case 2:
			printf("o");

	}*/
	//1;
	//const char* p = "hello";

	char ch[5] = { 'a', 'b', 'c', 'd', 'e'};
	char(*pch)[5] = &ch;
	printf("%c\n", (*pch)[1]);
	printf("%c\n", ch[1]);
	printf("%p\n", *(&ch));
	printf("%p\n", *(&ch)+1);


	int arr[5] = { 1,2,3,4,5 };
	int(*parr)[5] = &arr;
	printf("%d\n", (*parr)[1]);
	printf("%d\n", arr[1]);
	printf("%p\n", arr);
	printf("%p\n", *(&arr));
	printf("%p\n", *(&arr) + 1);


	//int arr1[5] = { 1,2,3,4,5 };
	//int* parr1 = arr1;
	//printf("%d\n", *parr1);

	//int arr[2][2] = { {1,2}, {3,4} };
	//int(*parr)[2] = arr;
	//printf("%d\n", arr[0][1]);
	//printf("%d\n", parr[0][1]);
	


	return 0;
}